package com.nb.exception;

import lombok.Getter;

/**
 * 基础异常类
 */
public class BaseException extends RuntimeException {

    @Getter
    private int code;
    private String message;

    public BaseException() {
    }

    public BaseException(int code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BaseException(String s) {
    }

    @Override
    public String getMessage() {
        return message;
    }
}